
<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body style="text-align:center">

	<p:growl id="mensajes" showDetail="true" life="2000" />

	<p:panel header="Sistema de control de salas: Usuario"
		style="width:100%">


		<h:panelGrid columns="2" cellpadding="5">

			<p:panel header="Agregar reserva" style="width:400px">
				<h:form>
					<h:panelGrid columns="2" cellpadding="5">
						<p:outputLabel for="inline2" value="Fecha:" />
						<p:calendar id="inline2" value="#{calendarView.date1}"
							mode="inline" />
						<p:outputLabel for="time2" value="Hora:" />
        <p:calendar id="time2" value="#{calendarView.date11}" pattern="HH:mm a" timeOnly="true"  />
						<h:outputLabel for="total" value="Sala" />
						<p:inputText id="total" value="#{usuarioManagedBean.total}"
							required="true" label="Sala" />
						<f:facet name="footer">
							<p:commandButton id="loginButton" value="Agregar reserva"
								actionListener="#{usuarioManagedBean.agregarMuchosMG()}" />
						</f:facet>
					</h:panelGrid>
				</h:form>
			</p:panel>
			<p:panel header="Eliminar reserva" style="width:400px">
				<h:form>
					<h:panelGrid columns="2" cellpadding="5">
						<p:outputLabel for="inline" value="Fecha:" />
						<p:calendar id="inline" value="#{calendarView.date1}"
							mode="inline" />
						<p:outputLabel for="time" value="Hora:" />
        <p:calendar id="time" value="#{calendarView.date11}" pattern="HH:mm a" timeOnly="true"  />
						<h:outputLabel for="total" value="Sala" />
						<p:inputText id="total" value="#{salaManagedBean.total}"
							required="true" label="Sala" />
						<f:facet name="footer">
							<p:commandButton id="loginButton" value="Eliminar reserva"
								actionListener="#{salaManagedBean.agregarMuchosMG()}" />
						</f:facet>
					</h:panelGrid>
				</h:form>
			</p:panel>
			
		</h:panelGrid>
	</p:panel>
</h:body>
</html>